export default [
	{
		url: '/api/postTest',
		method: 'post',
		timeout: 2000,
		statusCode: 200,
		// JSON数据
		response: () => {
			return {
				code: 200,
				message: 'ok',
				data: [
					{
						name: '我是post测试请求',
					},
				],
			}
		},
	},
	{
		url: '/api/getTest',
		method: 'get',
		timeout: 2000,
		statusCode: 200,
		// JSON数据
		response: ({ query }) => {
			if (query.name === 'crb') {
				return {
					code: 200,
					message: 'ok',
					data: [
						{
							name: '我是get测试请求',
						},
					],
				}
			} else {
				return {
					code: 0,
					message: '传递的参数错误',
				}
			}
		},
	},
]
